<template>
  <div id="app">
    <div v-for="item of movies" :key="item.id">
      {{item.title}}
      <img :src="item.pic" alt="">
    </div>
  </div>
</template>

<script>

export default {
  name: 'App',
  data(){
    return{
      movies:[]
    }
  },
  mounted(){
    this.$http.get("movie/top250").then(res=>{
      console.log(4)
      console.log(res.data.res)
      this.movies = res.data.res
    })
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
